<?php

$a="aa";

function f()
{
	global $a;
echo $a."xxx";	
}

f();

require_once(dirname(__FILE__).'/../lang/String.php');
	$s=new String($f);
	   		$i=$s->lastIndexOf("/");
			echo "i:".$i;